#include "OS/WindowEventUtils.h"

namespace tyro
{
	namespace OS
	{
		void WindowEventUtils::MessageHandler()
		{
			MSG message;
			while( PeekMessage( &message, NULL, 0, 0, PM_NOREMOVE ))
			{
				GetMessage( &message, NULL, 0, 0 );
				TranslateMessage( &message );
				DispatchMessage( &message );
				if( message.message == WM_QUIT )
				{
					// Quit the application
				}
			}
		}

		LRESULT WindowEventUtils::_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
		{
			//TODO handle window events
			return DefWindowProc( hWnd, uMsg, wParam, lParam );
		}
	}
}